#include "sudoku.h"

sudoku::sudoku(QWidget *parent) : QWidget(parent)
{
    paaleiska = new QHBoxLayout();


    QGridLayout *test = new QGridLayout();
    test->setHorizontalSpacing(1);
    test->setVerticalSpacing(1);
    QFrame *asdf = new QFrame();
    asdf->setGeometry(100,100,300,10);
    asdf->setFrameStyle(QFrame::HLine | QFrame::Plain);
    test->addWidget(asdf);
    QLabel *labelit[9][9];
    for(int i = 0; i < 9; ++i) {
        for(int j = 0; j < 9; ++j) {
           labelit[i][j] = new QLabel("5");
           labelit[i][j]->setFrameStyle(QFrame::Box | QFrame::Plain);
           labelit[i][j]->setLineWidth(1);
           labelit[i][j]->setFixedSize(50,50);
           labelit[i][j]->setAlignment(Qt::AlignCenter);
           test->addWidget(labelit[i][j], i,j);
        }
    }
    paaleiska->addLayout(test);

    setLayout(paaleiska);
}

sudoku::~sudoku()
{

}
